{
 "cells": [
  {
   "cell_type": "code",
   "id": "initial_id",
   "metadata": {
    "collapsed": true,
    "ExecuteTime": {
     "end_time": "2025-08-02T09:37:06.018233Z",
     "start_time": "2025-08-02T09:37:06.014379Z"
    }
   },
   "source": "import tensorflow as tf",
   "outputs": [],
   "execution_count": 18
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-08-02T09:37:06.030113Z",
     "start_time": "2025-08-02T09:37:06.024901Z"
    }
   },
   "cell_type": "code",
   "source": [
    "x = [[1.]]\n",
    "\n",
    "m = tf.matmul(x, x)\n",
    "m"
   ],
   "id": "e40d48c2d295e02c",
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<tf.Tensor: shape=(1, 1), dtype=float32, numpy=array([[1.]], dtype=float32)>"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "execution_count": 19
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-08-02T09:37:06.042932Z",
     "start_time": "2025-08-02T09:37:06.038118Z"
    }
   },
   "cell_type": "code",
   "source": [
    "x = tf.constant([[1, 9],[3, 6]])\n",
    "x"
   ],
   "id": "c7d65b118d39e14f",
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<tf.Tensor: shape=(2, 2), dtype=int32, numpy=\n",
       "array([[1, 9],\n",
       "       [3, 6]], dtype=int32)>"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "execution_count": 20
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-08-02T09:37:06.057784Z",
     "start_time": "2025-08-02T09:37:06.052938Z"
    }
   },
   "cell_type": "code",
   "source": [
    "x = tf.add(x, 1)\n",
    "x"
   ],
   "id": "3aede3691a12275a",
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<tf.Tensor: shape=(2, 2), dtype=int32, numpy=\n",
       "array([[ 2, 10],\n",
       "       [ 4,  7]], dtype=int32)>"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "execution_count": 21
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
